'use strict';
const Controller = require('egg').Controller;
class TxtController extends Controller {
    async index() { 
        //获取
        this.ctx.body = "index"
    }
    async create() {
        //添加
        this.ctx.body = 'create'
    }
    async update() { 
        //修改
        console.log(this.ctx.params.id)
        this.ctx.body = 'update'
    }
    async destroy(){
        console.log(this.ctx.params.id)
        this.ctx.body = 'destroy'
    }
}
module.exports = TxtController;
